﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EncryptData;

namespace FilterData
{
    class FilterEncrypt : IFilterData
    {
        TripleDES TPD;
        public FilterEncrypt()
        {
            TPD = new TripleDES();
        }
        public byte[] ProcessDataSend(byte[] data)
        {
            byte[] ArraySend = TPD.EncryptSend(data);
            return ArraySend;
        }
        public byte[] ProcessDataReceive(byte[] data)
        {
            byte[] ArrayReceive = TPD.DecryptReceive(data);          
            return ArrayReceive;
        }
    }
}
